<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;

//测试控制器
class IndexController extends Controller{
	
	
    // 前台首页
    public function index(){
    $cateData = new \Common\Model\Cate;
    $cateData = $cateData->get();
    
    $cateData = Data::channelLevel($cateData, $pid = 0,"&nbsp;", $fieldPri = 'cid', $fieldPid = 'pid', $level = 1);
    // p($cateData);
    View::with('cateData',$cateData);

       View::make();
    } 


}
